package org.linlinjava.litemall.db.domain;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;


@TableName("litemall_member_times")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class LitemallMemberTimes {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;// 用户id

    @TableField("member_id")
    private Long memberId; // member.id

    @TableField("all_times")
    private Integer allTimes;  // 全部次数

    @TableField("use_times")
    private Integer useTimes; //使用次数

    @TableField("not_used_times")
    private Integer notUsedTimes;// 未使用次数

    @TableField("is_effective")
    private String isEffective; // 是否生效

    @TableField("is_del")
    @TableLogic(value = "0",delval = "1")
    private String isDel;


    private Long orderId;  // user_member.id



}
